Skip to content

Conversation

ZhipengXue97
Copy link

Computations involving variables that require gradients will keep history. avoid using such variables in computations which will live beyond your training loops.

Reference to PyTorch FAQ:
"https://github.com/lisroach/pytorch/blob/53fceff1e1e08e6d11663d260e136eaa1a74be79/docs/source/notes/faq.rst"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant